def modify(file):
    f=open(file)
    nvalue=[]
    for each_line in f:
        if each_line.find('id') !=-1:
            each_line=each_line[:-1]

            temp=each_line.split(',')
            temp.append('new_'+temp[1])
            temp.append('new_' + temp[2]+'\n')

            nvalue.append(temp)
       else:
            if each_line.find('\n')!=-1:
                each_line = each_line[:-1]
            temp = each_line.split(',')
            if temp[1]<'3':
                temp.append('lev1')
            elif temp[1] =='3':
                temp.append('lev2')
            else:
                temp.append('lev3')
            if temp[2]<'3':
                temp.append('lev1\n')
            elif temp[2] =='3':
                temp.append('lev2\n')
            else:
                temp.append('lev3\n')
            nvalue.append(temp)
    f.close()
    newf=open('new_'+file,'w')
    for each_newline in nvalue:
        newf.writelines(','.join(each_newline))
    newf.close()

filename=input('请输入文件名：')
modify(filename)